package com.kube.design.abstractfactory;

/**
 * @author q.zhangr
 * @version 1.0.0
 * @date 2020/7/21
 */
public class Client {

    public static void main(String[] args) {

        //创建中国工厂
        FruitFactory chinaFactory = new ChinaFactory();

        //通过中国工厂生产中国苹果实例
        Fruit apple = chinaFactory.getApple();
        apple.get();

        //通过中国工厂生产中国香蕉实例
        Fruit banana = chinaFactory.getBanana();
        banana.get();

    }
}
